import request from '@/utils/request'
export function getPage(pageParam) {
  return request({
    url: '/gscloud_platform/platform/graphFrequency/page',
    method: 'get',
    params: pageParam
  })
}

export function addsave(data) {
  return request({
    url: '/gscloud_platform/platform/graphFrequency/save',
    method: 'post',
    data
  })
}

export function putsave(data) {
  return request({
    url: '/gscloud_platform/platform/graphFrequency/update',
    method: 'put',
    data
  })
}

export function updateClientScreenDefaultUrl(data) {
  return request({
    url: `/gscloud_platform/platform/graphFrequency/updateClientScreenDefaultUrl?clientScreenDefaultUrl=${data}`,
    method: 'post',
  })
}

export function updateTopScreenDefaultUrl(data) {
  return request({
    url: `/gscloud_platform/platform/graphFrequency/updateTopScreenDefaultUrl?topScreenDefaultUrl=${data}`,
    method: 'post',
  })
}